package com.hbnu.pojo;

import java.util.HashSet;
import java.util.Set;

public class Classes {
    private int cid;
    private String cname;

    //Set<Student> students = new HashSet<>();
    //private Teacher teacher;
    Set<Teacher> teachers = new HashSet<>();

    public Set<Teacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(Set<Teacher> teachers) {
        this.teachers = teachers;
    }

    /* public Teacher getTeacher() {
        return teacher;
    }



    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }*/

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }


    @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", teachers=" + teachers +
                '}';
    }

    /* @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", students=" + students +
                '}';
    }*/


    /* @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", teacher=" + teacher +
                '}';
    }*/

}
